﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SceneFrame
{
    public class NotFilter : IFilter
    {
        private IFilter _Filter = null;

        public NotFilter(IFilter filter) { _Filter = filter; }

        public override bool Filter(Trigger trigger)
        {
            return !(_Filter?.Filter(trigger) ?? true);
        }
    }
}
